package designpattern.adapter.object;

/**
 * TODO:类描述
 *
 * @className: DeerApater2
 * @packageName: designpattern.adapter.object
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/19 21:50
 */
public class DeerApater2 implements ITarget{
    private Deer deer;
    public DeerApater2(Deer deer){
        this.deer = deer;
    }
    @Override
    public void fly() {
        System.out.println("我原来就会飞");
    }

    @Override
    public void run() {
        deer.run();
    }
}
